package common.library.utils;

import android.widget.TextView;

import common.library.models.GenericCallback;
import common.library.models.StringCallback;
import lombok.var;

public class TestUtil {
    public static void testCallback(StringCallback runnable) {
        runnable.run("hello");
    }

    public static void testCallback(GenericCallback<TextView> runnable, TextView textView) {
        runnable.run(textView);
    }

    public static void testCallback() {
        var callback = new StringCallback() {
            @Override
            public void run(String s) {
                LogUtil.info(s);
            }
        };
        testCallback(callback);
    }
}
